@(form: Form[Product])

@helper.form(routes.Admin.updateProduct(Long.valueOf(form("id").value))){
	@if(flash.contains("success")){
		<p>
			@flash.get("success")
		</p>
	}
	<p>
		<input type = "title" name = "title" placeholder = "Title" value = "@form("title").value" />
	</p>
	<p>
		<input type = "price" name = "price" placeholder = "Price" value = "@form("price").value" />
	</p>
	<p>
		<input type = "quantity" name = "quantity" placeholder = "Quantity" value = "@form("quantity").value" />
	</p>
	<p>
		<input type = "textarea" name = "description" placeholder = "Description" value = "@form("description").value" style = "resize: none" rows="7" />
	</p>		
	<p>
		<input type = "producer" name = "producer" placeholder = "Producer" value = "@form("producer").value" />
	</p>
	<p>
		<button type = "submit">Submit</button>
	</p>
}